package com.xjscrm.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.CustomerBehavior;
import com.xjscrm.console.param.wwCustomer.CustomerBehaviorQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface CustomerBehaviorMapper {

    int insert(CustomerBehavior record);

    int insertSelective(CustomerBehavior record);

    CustomerBehavior selectById(Long id);

    int updateByIdSelective(CustomerBehavior record);

    int updateById(CustomerBehavior record);

    /**
     * 分页查询
     *
     * @param page
     * @param query
     * @return
     */
    ArrayList<CustomerBehavior> findByList(Page<CustomerBehavior> page, @Param("query") CustomerBehaviorQuery query);


}